package com.gift.controller;

import com.gift.dao.UserTableMapper;
import com.gift.pojo.UserTable;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2017/12/24.
 */
@Controller
@RequestMapping("user")
public class UserController {

    @Resource
    UserTableMapper userTableMapper;

    //得到所有用户
    @RequestMapping("/getAll")
    @ResponseBody
    public List getAll(){

        return userTableMapper.getAll();
    }

}
